﻿<%@ Page Language="C#" MasterPageFile="~/Admin/ManagerPage.master" AutoEventWireup="true"
    CodeFile="DetailsForm.aspx.cs" Inherits="Pages_DetailsForm" Title="新闻发布" ValidateRequest="false" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="C">
    <table border="0" class="m_table" cellspacing="1" cellpadding="0" align="Center">
        <tr>
            <th colspan="2">
                编辑器
            </th>
        </tr>
        <%--<tr>
            <td align="right">：</td>
            <td></td>
        </tr>--%>
        <tr>
            <td align="right">
                类别：
            </td>
            <td>
                <XCL:DropDownList ID="frmClassisID" runat="server" DataTextField="TreeNodeName2"
                    DataValueField="ID" AppendDataBoundItems="True" DataSourceID="ods" ToolTip="请选择分类">
                </XCL:DropDownList>
                <asp:ObjectDataSource ID="ods" runat="server" SelectMethod="FindAllChildsByParent"
                    DataObjectTypeName="NewsPub.Classis" TypeName="NewsPub.Classis">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="0" Name="parentKey" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td align="right">
                时间：
            </td>
            <td>
                <XCL:DateTimePicker ID="frmCreateTime" runat="server"></XCL:DateTimePicker>
            </td>
        </tr>
        <tr>
            <td align="right">
                标题：
            </td>
            <td>
                <asp:TextBox ID="frmTitle" runat="server" TextMode="SingleLine" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                内容：
            </td>
            <td>
                <textarea id="frmBody" name="frmBody" runat="server" style="width: 840px; height: 390px"></textarea>
                <%--<asp:TextBox ID="frmBody1" runat="server" TextMode="MultiLine" Width="500px" Height="80px" Visible="false"></asp:TextBox>--%>
                <link rel="stylesheet" href="../../kindeditor/themes/default/default.css" />
                <link rel="stylesheet" href="../../kindeditor/plugins/code/prettify.css" />
                <script charset="utf-8" src="../../kindeditor/kindeditor.js"></script>
                <script charset="utf-8" src="../../kindeditor/lang/zh_CN.js"></script>
                <script charset="utf-8" src="../../kindeditor/plugins/code/prettify.js"></script>
                <script>
                    KindEditor.ready(function (K) {
                        var editor1 = K.create('#ctl00_C_frmBody', {
                            cssPath: '../../kindeditor/plugins/code/prettify.css',
                            uploadJson: '../../kindeditor/upload_json.ashx',
                            fileManagerJson: '../../kindeditor/file_manager_json.ashx',
                            allowFileManager: true,
                            afterCreate: function () {
                                var self = this;
                                //	                K.ctrl(document, 13, function () {
                                //	                    self.sync();
                                //	                    K('form[name=aspnetForm]')[0].submit();
                                //	                });
                                //	                K.ctrl(self.edit.doc, 13, function () {
                                //	                    self.sync();
                                //	                    K('form[name=aspnetForm]')[0].submit();
                                //	                });
                            }
                        });
                        prettyPrint();
                    });
                </script>
            </td>
        </tr>
        <tr>
            <td align="right">
                摘要：
            </td>
            <td>
                <asp:TextBox ID="frmTag" runat="server" TextMode="SingleLine" Width="500px"></asp:TextBox>
            </td>
        </tr>
        <%--<XCL:DateTimePicker ID="frmCreateTime" runat="server" Visible="false"></XCL:DateTimePicker>--%>
        <asp:TextBox ID="frmUserID" runat="server" TextMode="SingleLine" Width="300px" Visible="false"></asp:TextBox>
        <XCL:DateTimePicker ID="frmEditTime" runat="server" Visible="false"></XCL:DateTimePicker>
        <%--<tr>
            <td align="right">发布时间：</td>
            <td></td>
        </tr>
<tr>
            <td align="right">编辑时间：</td>
            <td></td>
        </tr>--%>
        <%--<tr>
            <td align="right">：</td>
            <td></td>
        </tr>--%>
    </table>
    <table border="0" align="Center" width="100%">
        <tr>
            <td align="center">
                <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" Text="提交" />
                &nbsp;<asp:Button ID="btnReturn" runat="server" OnClientClick="parent.Dialog.CloseSelfDialog(frameElement);return false;"
                    Text="返回" />
            </td>
        </tr>
    </table>
</asp:Content>
